package com.syezon.wifikey.wifi.info;

import android.net.NetworkInfo;
import android.net.wifi.WifiInfo;


public class WifiConnectionInfo {

    private boolean isConnected;
    private boolean gpsDeny;
    private NetworkInfo.DetailedState detailedState;
    private NetworkInfo wifiInfo;
    private String ssid;
    private String bssid;
    private boolean isSavePwd;

    public boolean isConnected() {
        return isConnected;
    }

    public void setConnected(boolean connected) {
        isConnected = connected;
    }

    public boolean isGpsDeny() {
        return gpsDeny;
    }

    public void setGpsDeny(boolean gpsDeny) {
        this.gpsDeny = gpsDeny;
    }

    public NetworkInfo.DetailedState getDetailedState() {
        return detailedState;
    }

    public void setDetailedState(NetworkInfo.DetailedState detailedState) {
        this.detailedState = detailedState;
    }

    public NetworkInfo getWifiInfo() {
        return wifiInfo;
    }

    public void setWifiInfo(NetworkInfo wifiInfo) {
        this.wifiInfo = wifiInfo;
    }

    public String getSsid() {
        return ssid;
    }

    public void setSsid(String ssid) {
        this.ssid = ssid;
    }

    public String getBssid() {
        return bssid;
    }

    public void setBssid(String bssid) {
        this.bssid = bssid;
    }

    public boolean isSavePwd() {
        return isSavePwd;
    }

    public void setSavePwd(boolean savePwd) {
        isSavePwd = savePwd;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("isConnected : " + isConnected())
                .append(" detailedState : " + detailedState)
                .append(" wifiInfo : " + wifiInfo)
                .append(" ssid : " + ssid)
                .append(" bssid : " + bssid);
        return sb.toString();
    }
}
